package com.max.spark.utils

import org.apache.log4j.Logger

object LogUtil {
  def log = Logger.getLogger("DEBUG")
  def infoLogger = Logger.getLogger("INFO")
  def warnLogger = Logger.getLogger("WARN")
  def errorLogger = Logger.getLogger("ERROR")

  /**
   * INFO级别日志
   * @param str
   */
  def info(str: String = "") = log.info(str)

  /**
   * ERROR级别日志
   * @param str
   */
  def error(str: String = "") = log.error(str)

  /**
   * WARN级别日志
   * @param str
   */
  def warn(str: String = "") = log.warn(str)

  /**
   * DEBUG几倍日志
   * @param str
   */
  def debug(str: String = "") = log.debug(str)
}
